package com.jiang.annotation.aop.cacheable;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Arrays;

@Service
@Slf4j
public class CacheableService {

    @MyCacheable(value = "CacheableController.test1")
    public String getData() {
        log.info("get data.........正常情况下只会执行一次");
        return Arrays.asList("aaa", "bbb", "ccc").toString();
    }
}

